<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学员信息表</title>
    <link href="layui/css/layui.css" rel="stylesheet">
    <style>
        table {
            width: 800px;
            border-collapse: collapse;
            position: absolute;
            margin-left: 100px;
            margin-top: 50px;
        }
        #add{
            display: block;
            position: relative;
            margin-right: 0;
        }
        th {
            background-color: #f2f2f2;
        }
        tr:nth-child(even) {
            background-color: #90EE90;
        }
        tr:nth-child(odd) {
            background-color: #ffffff;
        }
    </style>
</head>
<body>

<table border="1">

    <thead>
    <h2>营业网点查询</h2>
    <a id="add" href="addBank.jsp">新增网点</a>
    <tr>
        <th hidden="hidden">id</th>
        <th>网点名称</th>
        <th>所在城区</th>
        <th>网点地址</th>
        <th>联系电话</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="bank" items="${bankList}" varStatus="s">
        <tr>
            <td hidden="hidden">${bank.id}</td>
            <td>${bank.name}</td>
            <td>${bank.cityArea}</td>
            <td>${bank.address}</td>
            <td>${bank.telephone}</td>
            <td><a href="/bank?action=idQueryBank&&id=${bank.id}">查询</a></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
